#include<bits/stdc++.h>
using namespace std;
int main()
{
	int k,n=0;
	double sn=0;
	cin>>k;
	while(sn<=k)
	{
		n++;
		sn=sn+1.0/n;
		
	}
	cout<<n;
    return 0;
}

